package com.yang.springboot.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author yanwei.yang
 * @date 2021/11/11 16:49
 * @description:
 */
@Controller
public class IndexController {


    @Value("${school.name}")
    private String name;
    @Value("${school.site}")
    private String site;

    @ResponseBody
    @RequestMapping("say")
    public String say() {
        return "hi,springboot" + name + "," + site;
    }
}
